import request from '@/utils/request' // api: https://github.com/axios/axios

// 登录
export function login(params) {
    return request({
        url: 'sys/user/login',
        method: 'post',
        data: params
    })
}
export function updateSelfPassword(params) {
    return request({
        url: 'sys/user/login',
        method: 'post',
        data: params
    })
}
// 部门列表
export function getByParentID(params) {
    return request({
        url: 'basic/group/getByParentID',
        method: 'post',
        data: params
    })
}
// 站点信息
export function getSiteByPage(params) {
    return request({
        url: 'basic/site/getByPage',
        method: 'post',
        data: params
    })
}
// 仓库信息
export function getStockByPage(params) {
    return request({
        url: 'basic/stock/getByPage',
        method: 'post',
        data: params
    })
}
// 存放地点
export function getPlaceByPage(params) {
    return request({
        url: 'basic/place/getByPage',
        method: 'get',
        params: params
    })
}
// 物资分类
export function getAllCategories() {
    return request({
        url: 'basic/category/getAllCategories',
        method: 'get'
    })
}